package com.laowang.project.system.service.impl;

import java.util.List;
                            import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyCyhShopCateMapper;
import com.laowang.project.system.domain.MyCyhShopCate;
import com.laowang.project.system.service.MyCyhShopCateService;

/**
 * 商家类型Service业务层处理
 *
 * @author laowang
 * @date 2023-04-26
 */
@Service
public class MyCyhShopCateServiceImpl implements MyCyhShopCateService {
    @Autowired
    private MyCyhShopCateMapper myCyhShopCateMapper;

    /**
     * 查询商家类型
     *
     * @param id 商家类型ID
     * @return 商家类型
     */
    @Override
    public MyCyhShopCate selectMyCyhShopCateById(Integer id) {
        return myCyhShopCateMapper.selectMyCyhShopCateById(id);
    }

    /**
     * 查询商家类型列表
     *
     * @param myCyhShopCate 商家类型
     * @return 商家类型
     */
    @Override
    public List<MyCyhShopCate> selectMyCyhShopCateList(MyCyhShopCate myCyhShopCate) {
        return myCyhShopCateMapper.selectMyCyhShopCateList(myCyhShopCate);
    }

    /**
     * 新增商家类型
     *
     * @param myCyhShopCate 商家类型
     * @return 结果
     */
    @Override
    public int insertMyCyhShopCate(MyCyhShopCate myCyhShopCate) {
                                                        return myCyhShopCateMapper.insertMyCyhShopCate(myCyhShopCate);
    }

    /**
     * 修改商家类型
     *
     * @param myCyhShopCate 商家类型
     * @return 结果
     */
    @Override
    public int updateMyCyhShopCate(MyCyhShopCate myCyhShopCate) {
                                                        return myCyhShopCateMapper.updateMyCyhShopCate(myCyhShopCate);
    }

    /**
     * 批量删除商家类型
     *
     * @param ids 需要删除的商家类型ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhShopCateByIds(Integer[] ids) {
        return myCyhShopCateMapper.deleteMyCyhShopCateByIds(ids);
    }

    /**
     * 删除商家类型信息
     *
     * @param id 商家类型ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhShopCateById(Integer id) {
        return myCyhShopCateMapper.deleteMyCyhShopCateById(id);
    }
}
